package com.example.minemodule.net;


import com.example.minemodule.entity.BloodBean;
import com.example.minemodule.entity.OrderEntity;
import com.example.minemodule.entity.PersonCenterEntity;
import com.example.minemodule.entity.ProtocalEntity;
import com.example.minemodule.entity.RecordWeightEntity;
import com.yilijk.base.network.bean.ResponModel;

import java.util.HashMap;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;
/**
 * Created by SHICHENG
 * on 2021/10/22.
 */
public interface MineApiService {

    String getByDocumentNo = "/apivbp/api/document/getByDocumentNo";
    @GET(getByDocumentNo)
    Observable<ResponModel<ProtocalEntity.DataBean>> getProtocalEntity(@QueryMap HashMap<String,Object> datamap);

    String logoutForApp = "/passport/loginApi/logoutForApp";
    @POST(logoutForApp)
    Observable<ResponModel<String>> getLogoutInfo(@Body RequestBody body);

    String personCenter = "/vbp-patient/patient/person/center";
    @POST(personCenter)
    Observable<ResponModel<PersonCenterEntity.DataBean>> getPersonCenter(@Body RequestBody body);

    String getUserAction = "/passport/personal/getUserAction";
//    @POST(getUserAction)
//    Observable<ResponModel<PersonCenterEntity.DataBean>> getUserAction(@Body RequestBody body);

    String getOrder = "/apivbp/api/patient/order/stat";
    @GET(getOrder)
    Observable<ResponModel<OrderEntity.DataBean>> getOrder();

    String editHealth = "/ihospital-patient/ipatient/health/editHealth";
    @GET(editHealth)
    Observable<ResponModel<RecordWeightEntity.DataBean>> getRecordWeightEntity(@QueryMap HashMap<String,Object> datamap);

    String save = "/ihospital-patient/ipatient/bloodFat/save";
    @POST(save)
    Observable<ResponModel<BloodBean.DataBean>> getSave(@Body RequestBody body);
}
